<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
import request from '@/utils/requset.js'
import { setToken } from '@/utils/storage.js'
export default {
  data () {
    return {

    }
  },
  async created () {
    const res = await request.post('/auth/login', {
      username: 'admin8',
      password: 'admin'
    })
    console.log(res)
    setToken(res.data.data.token)
  }
}

</script>

<style lang="scss">

</style>
